import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "./assets/global.scss"
import axios from "axios"
import vueTouch from 'vue-touch'

Vue.prototype.axios = axios

Vue.config.productionTip = false;
// 定义全局变量$url this.$url调用
Vue.prototype.URL = "https://xiaowu15.gitee.io/images/imgs/" 
axios.get("api/data.json").then(msg=>{
  // console.log(msg.data);
  // this.data = msg.data.position
  
  new Vue({
    router,
    store,
    created(){
      this.$store.commit('data',msg.data)
      Vue.use(vueTouch,{name:'v-touch'})
    },
    render: h => h(App)
  }).$mount('#app')
  
  
  // console.log(this.data);
})
